package com.malamute.system.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import com.malamute.core.entity.BaseEntity;

/**
 * @Title:Log.java
 * @Package com.restaurant.models
 * @Description 日志
 * @author AceGuan gjybst@163.com
 * @date 2012-1-6 上午01:32:54
 * @version v1.0
 */
@Entity
@Table(name = "T_SYS_LOG")
public class Log extends BaseEntity {
	// -------异常日志-------

	// 异常类
	private String className;
	// 方法名称
	private String methodName;

	// 异常名称
	private String exceptionName;
	// 异常描述
	private String errorMessage;

	// ----------操作日志-----------
	private String who;

	private String doWhat;

	private Date atTime;

	@Enumerated(value = EnumType.ORDINAL)
	private LogType type = LogType.ACTIONERROR;// 日志类型

	private String description;// 日志描述

	/**
	 * 获取description
	 * 
	 * @return description
	 */

	public String getDescription() {
		return description;
	}

	/**
	 * 设置description
	 * 
	 * @param description
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	public String getWho() {
		return who;
	}

	public void setWho(String who) {
		this.who = who;
	}

	public String getDoWhat() {
		return doWhat;
	}

	public void setDoWhat(String doWhat) {
		this.doWhat = doWhat;
	}

	public Date getAtTime() {
		return atTime;
	}

	public void setAtTime(Date atTime) {
		this.atTime = atTime;
	}

	public LogType getType() {
		return type;
	}

	public void setType(LogType type) {
		this.type = type;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getExceptionName() {
		return exceptionName;
	}

	public void setExceptionName(String exceptionName) {
		this.exceptionName = exceptionName;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

}
